package com.mvp.mvpdemo.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.module.LoadMoreModule
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.mvp.mvpdemo.R
import com.mvp.mvpdemo.bean.WXData


/**
 * Created By Mahongyin
 * Date    2020/11/2 10:47
 *  微信公众号
 */
class WxAdapter(var datas: MutableList<WXData>) : BaseQuickAdapter<WXData, BaseViewHolder>(R.layout.item_wx, datas)/*,LoadMoreModule*/ {

    override fun convert(holder: BaseViewHolder, item: WXData) {
        holder ?: return
        item ?: return
        holder.setText(R.id.text_wx, item.name)
    }
}